package com.libinshen.wxpay.login.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.libinshen.wxpay.login.entity.TokenInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TokenMapper extends BaseMapper<TokenInfo> {

    /* 添加token */
    void addToken(TokenInfo token);

    /* 修改token */
    void updataToken(TokenInfo token);

    /* 查询token */
    TokenInfo findByUserId(Long userId);

    //删除token
    void deleteByUserId(Long userId);
}
